package io.gitee.xyuesheng.day03;

import org.junit.Test;

public class HomeworkTestPhone {
    @Test
    public void test() {
//        HomeworkPhone phone1=new HomeworkPhone("小米",998);
//        System.out.print("正在使用价格为" + phone1.getPrice()+
//                "元的"+phone1.getBrand()+"品牌的手机");
//        phone1.call();

//        HomeworkPhone phone2=new HomeworkPhone();
//        System.out.print("正在使用价格为" + phone2.getPrice()+
//                "元的"+phone2.getBrand()+"品牌的手机");
//        phone2.sendMessage();

//        HomeworkPhone phone3=new HomeworkPhone();
//        System.out.print("正在使用价格为" + phone3.getPrice()+
//                "元的"+phone3.getBrand()+"品牌的手机");
//        phone3.playGame();


        HomeworkPhone phone1 = new HomeworkPhone();
        phone1.setBrand("小米");
        phone1.setPrice(998);
        System.out.print("正在使用价格为" + phone1.getPrice() +
                "元的" + phone1.getBrand() + "品牌的手机");
        phone1.call();
        System.out.println();

        HomeworkPhone phone2 = new HomeworkPhone();
        phone2.setBrand("小米");
        phone2.setPrice(998);
        System.out.print("正在使用价格为" + phone2.getPrice() +
                "元的" + phone2.getBrand() + "品牌的手机");
        phone2.sendMessage();
        System.out.println();

        HomeworkPhone phone3 = new HomeworkPhone();
        phone3.setBrand("小米");
        phone3.setPrice(998);
        System.out.print("正在使用价格为" + phone3.getPrice() +
                "元的" + phone3.getBrand() + "品牌的手机");
        phone3.playGame();
    }
}
